package com.example.compose

import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.tooling.preview.Preview

@Preview
@Composable
fun CollectionCard(
    modifier: Modifier = Modifier
) {
    Column {
        Surface(
            shape = MaterialTheme.shapes.small,
            modifier = modifier
        ) {
            Image(
                painter = painterResource(R.drawable.fc2_nature_meditations),
                contentDescription = null
            )
        }

        Spacer(modifier = Modifier.weight(1f))

        Surface(
            shape = MaterialTheme.shapes.large,
            modifier = modifier
        ) {
            Image(
                painter = painterResource(R.drawable.fc2_nature_meditations),
                contentDescription = null
            )
        }
    }

}